package department.fc.common;

import department.fc.controller.DepartmentListController;
import department.fc.controller.GetDepartmentByNumController;
import department.fc.controller.ModifyDepartmentController;
import department.fc.controller.ModifyDepartmentFormController;
import department.fc.controller.RegisterDepartmentController;
import department.fc.controller.RemoveDepartmentController;
import department.fc.controller.SearchDepartmentController;

public class HandlerMapping {

		public static Controller getController(String command){
			Controller controller = null;
			
			if(command.equals("dlc")){
				//DepartmentListController로 이동 처리
				controller = new DepartmentListController();
			}else if(command.equals("gdnc")){
				controller = new GetDepartmentByNumController();
			}else if(command.equals("mdc")){
				controller = new ModifyDepartmentController();
			}else if(command.equals("mdfc")){
				controller = new ModifyDepartmentFormController();
			}else if(command.equals("rdc")){
				controller = new RegisterDepartmentController();
			}else if(command.equals("rmdc")){
				controller = new RemoveDepartmentController();
			}else if(command.equals("sdc")){
				controller = new SearchDepartmentController();
			}else if(command.equals("link")){
				controller = new  URLLinkController();
			}
			return controller;
		}
}
